import api from '@/libs/request'
/**
 * 获取分类
 * @param {string} level
 * @param {number} parentId 父级分类id
 * @param {number} size
 * @param {number} current
 */
export const doGetCategory = (level: string | number, parentId: number | string, size: number, current: number) => {
  return api.get('gruul-mall-addon-platform/platform/category/list/level', { level, parentId, size, current })
}
/**
 * 获取主页商品列表
 * @param {string} platformCategoryId
 * @param {string} productName
 */
export const doGetGoodList = (params: any) => {
  return api.get('gruul-mall-addon-platform/platform/product/by/category/list', { ...params })
}
